/**
 * Copyright @ 2000 ysten Co. Ltd. 
 * All right reserved.     
 * @author: wangmin
 * date: 2016-07-12     
 */
package com.task.repository;

import com.task.entity.Store;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface IStoreRepository extends JpaRepository<Store, Long>, JpaSpecificationExecutor<Store> {

    Store findByStoreCode(String storeCode);

    @Query(value = "select t from Store t where  storeCode in (?1)")
    List<Store> findByStoreCodes(List<String> code);
}
